package chapter01

object Test09_StrOps {
  def main(args: Array[String]): Unit = {
    val a:String = "abc"
    val b:String = "abc"
    val c:String = new String("abc")
    //==和equals比较的是字符串中的值 eq比较的是地址
    println(a==b)
    println(a.equals(b))
    println(a.eq(b))
    println(a.eq(c))
    println(a==c)
    println(a.equals(c))
  }
}
